<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员中心-一览网</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/member.css">
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/layui/layui.all.js"></script>
</head>
<body>
<header>
    <div class="m_top">
        <div class="m_top_bar">
            <div class="m_top_login fl">
                <p><b>13814503433</b> <img src="images/right.png">  <a href="member_index.html">会员中心</a> | <a href="">退出</a></p>
            </div>
            <div class="m_top_search fl">
                <form method="get" action="">
                    <div class="m_search_warp">
                        <i class="ico ico-zoom"></i>
                        <input type="text" value="" placeholder="请输入化学品的中文名，英文名或CAS号" class="m_search_txt">
                    </div>
                    <input type="submit" value="搜索" class="m_search_sub">
                </form>
            </div>
            <div class="m_top_nav rg_menu fr">
                <ul>
                    <li><a href="index.html">平台首页</a><span>|</span></li>
                    <li><div class="show_qrcode"> <img src="images/er-icon.png" class="simple">二维码 <span>|</span><div class="tip-qrcode"><img src="images/qrcode.jpg"></div></div></li>
                    <li class="kf"><a href="javascript:;" class="td">客服中心</a><span>|</span>
                        <div class="kf_child hidden">
                            <ul>
                                <li><a href="help.html">帮助中心</a> </li>
                                <li><a href="feedback.html">反馈意见</a> </li>
                                <li><a href="contact.html">联系我们</a> </li>
                            </ul>
                        </div>
                    </li>
                    <li><a href=""  class="td">网站地图</a></li>
                </ul>
            </div>
        </div>
    </div>
</header>

<div class="clearfix"></div>

<div class="contain pt20">
    <div class="m_content">
        <div class="m_menu fl">
            <div class="mt_menu">
                <dl>
                    <dt class="mn1">会员首页</dt>
                    <dd><a href="member_index.html">会员首页</a></dd>
                </dl>
                <dl>
                    <dt class="mn2">采购中心</dt>
                    <dd><a href="member_buy_add.html">新增求购</a></dd>
                    <dd>
                        <a href="member_buy_list.html">求购管理</a>
                        <ol class="hidden">
                            <li><a href="">已报价</a></li>
                            <li><a href="">未报价</a></li>
                            <li><a href="">取消求购</a></li>
                            <li><a href="">暂时缺货</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_order_list.html">采购订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn3">销售中心</dt>
                    <dd><a href="member_goods_add.html">上传目录</a></dd>
                    <dd><a href="member_goods_list.html">商品管理</a>
                        <ol class="hidden">
                            <li><a href="member_goods_list.html">已上架</a></li>
                            <li><a href="member_goods_list_down.html">已下架</a></li>
                            <li><a href="member_goods_list_check.html">待审核</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_inquiry_list.html">询单管理</a>
                        <ol class="hidden">
                            <li><a href="member_inquiry_list.html">未报价</a></li>
                            <li><a href="member_inquiry_list_had.html">已报价</a></li>
                            <li><a href="member_inquiry_list_abandon.html">已放弃</a></li>
                        </ol>
                    </dd>
                    <dd><a href="member_sell_list.html">销售订单</a></dd>
                </dl>
                <dl>
                    <dt class="mn4">账号管理</dt>
                    <dd><a href="member_account_attentions.html">我的关注</a></dd>
                    <dd><a href="member_account_informations.html">账号信息</a></dd>
                    <dd><a href="member_account_transaction.html">交易资料</a>
                        <ol>
                            <li><a href="member_account_transaction.html">收货地址</a></li>
                            <li class="on"><a href="member_account_invoice.html">发票中心</a></li>
                            <li><a href="member_account_business.html">资质管理</a></li>
                        </ol>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="m_con fr">
            <div class="b-bar">
                <div class="b-title"><span>发票中心</span></div>
                <div class="b-con">

                    <div class="flex jy_between mt20">
                        <div class="b-block-search" style="margin: 0px;">
                            <form action="" method="post">
                                <input type="text" id="search_params_chemical_info" class="form_input wd300 search-input" name="keywords" placeholder="请输入发票信息" value="" autocomplete="off">
                                <input type="submit" class="submit_btn wd100" value="查 询">
                            </form>
                        </div>
                        <div><input type="button" id="btn_add_invoice" class="submit_btn_orange wd100 fr" value="+新增信息"></div>
                    </div>

                    <div class="flex b-block_list mt20 mb10">
                        <table class="bz_table">
                            <thead>
                            <tr>
                                <th width="15%">发票抬头</th>
                                <th>发票类型</th>
                                <th>开票信息</th>
                                <th>收票信息</th>
                                <th width="10%">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>江苏艾康生物医药研发有限公司</td>
                                <td>增值税专用发票</td>
                                <td>
                                    <p>税务登记号：913201163023151985</p>
                                    <p>电话：025-66911095</p>
                                    <p>开户银行：中国银行南京市高新技术开发区支行</p>
                                    <p>银行账户：470264745219</p>
                                    <p>公司地址：江苏省南京市六合区南京市六合区中山科技园科创大道9号D4栋301室</p>
                                </td>
                                <td>
                                    <p>收票人：桂保林</p>
                                    <p>联系电话：15950516502</p>
                                    <p>收票地址：山西太原人民路华夏大厦16楼</p>
                                </td>
                                <td>
                                    <p><img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a></p>
                                </td>
                            </tr>
                            <tr>
                                <td>江苏艾康生物医药研发有限公司</td>
                                <td>增值税专用发票</td>
                                <td>
                                    <p>税务登记号：913201163023151985</p>
                                    <p>电话：025-66911095</p>
                                    <p>开户银行：中国银行南京市高新技术开发区支行</p>
                                    <p>银行账户：470264745219</p>
                                    <p>公司地址：江苏省南京市六合区南京市六合区中山科技园科创大道9号D4栋301室</p>
                                </td>
                                <td>
                                    <p>收票人：桂保林</p>
                                    <p>联系电话：15950516502</p>
                                    <p>收票地址：山西太原人民路华夏大厦16楼</p>
                                </td>
                                <td>
                                    <p><img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a></p>
                                </td>
                            </tr>
                            <tr>
                                <td>江苏艾康生物医药研发有限公司</td>
                                <td>增值税专用发票</td>
                                <td>
                                    <p>税务登记号：913201163023151985</p>
                                    <p>电话：025-66911095</p>
                                    <p>开户银行：中国银行南京市高新技术开发区支行</p>
                                    <p>银行账户：470264745219</p>
                                    <p>公司地址：江苏省南京市六合区南京市六合区中山科技园科创大道9号D4栋301室</p>
                                </td>
                                <td>
                                    <p>收票人：桂保林</p>
                                    <p>联系电话：15950516502</p>
                                    <p>收票地址：山西太原人民路华夏大厦16楼</p>
                                </td>
                                <td>
                                    <p><img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a></p>
                                </td>
                            </tr>
                            <tr>
                                <td>江苏艾康生物医药研发有限公司</td>
                                <td>增值税专用发票</td>
                                <td>
                                    <p>税务登记号：913201163023151985</p>
                                    <p>电话：025-66911095</p>
                                    <p>开户银行：中国银行南京市高新技术开发区支行</p>
                                    <p>银行账户：470264745219</p>
                                    <p>公司地址：江苏省南京市六合区南京市六合区中山科技园科创大道9号D4栋301室</p>
                                </td>
                                <td>
                                    <p>收票人：桂保林</p>
                                    <p>联系电话：15950516502</p>
                                    <p>收票地址：山西太原人民路华夏大厦16楼</p>
                                </td>
                                <td>
                                    <p><img src="images/delete16.png"><a href="javascript:;" class="blue" onclick="javascript:delete_address(2653);">删除</a></p>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="clearfix"></div>
                    <div class="paging">
                        <ul class="pagination">
                            <li class="page-item disabled"><span class="page-link">上页</span></li>
                            <li class="page-item active"><span class="page-link">1</span></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=2">2</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=3">3</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=4">4</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=5">5</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=6">6</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=7">7</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=8">8</a></li>
                            <li class="page-item disabled"><span class="page-link">...</span></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=188">188</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=189">189</a></li>
                            <li class="page-item"><a class="page-link" href="http://www.buysellchem.com/categories/1.html?page=2" rel="next">下页</a></li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<footer>
    <div class="footer">
        <div class="foot_con">
            <div class="ft_left">
                <div class="ft_service">
                    <img src="images/service.png">
                    <p class="yellow fz16 bold mt10">电话：025-66028182</p>
                    <p class="fz16 mt10">QQ：2850281398</p>
                    <p class="fz16 mt10">工作时间 8:30 - 17:30</p>
                </div>
            </div>
            <div class="ft_center">
                <dl>
                    <dt>新手上路</dt>
                    <dd><a href="">用户注册</a></dd>
                    <dd><a href="">隐私声明</a></dd>
                    <dd><a href="">使用须知</a></dd>
                    <dd><a href="">协议条款</a></dd>
                </dl>
                <dl>
                    <dt>联系我们</dt>
                    <dd><a href="">关于我们</a></dd>
                    <dd><a href="">联系我们</a></dd>
                    <dd><a href="">合作伙伴</a></dd>
                    <dd><a href="">通知公告</a></dd>
                </dl>
                <dl>
                    <dt>售后服务</dt>
                    <dd><a href="">开票服务</a></dd>
                    <dd><a href="">退换货服务</a></dd>
                    <dd><a href="">用户反馈</a></dd>
                    <dd><a href="">发货方式</a></dd>
                </dl>
                <dl>
                    <dt>帮助中心</dt>
                    <dd><a href="">售后政策</a></dd>
                    <dd><a href="">退换货说明</a></dd>
                    <dd><a href="">退款说明</a></dd>
                    <dd><a href="">产品目录</a></dd>
                </dl>
            </div>
            <div class="ft_right">
                <div class="ft_qrcode">
                    <img src="images/qrcode.jpg">
                    <p>关注公众号</p>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="copyright">
            <p>版权所有 Copyright(C)2020 南京一览生物科技有限公司 <a href="http://www.beian.miit.gov.cn/" style="color: #777272;">苏ICP备20017967号-1</a></p>
        </div>
    </div>
    <div class="clearfix"></div>
</footer>
</body>
</html>
<!--新增发票-->
<div id="add_invoice_block" class="hidden">
    <form id="add_invoice_form" action="http://www.buysellchem.com/member/account/create_invoice" accept-charset="UTF-8" method="post">
        <input type="hidden" name="_token" value="uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB">
        <input type="hidden" name="method" id="invoice_method" value="create" />
        <input class="hidden" type="hidden" name="invoice[id]" id="edit_invoice_id" />
        <table class="kqy_table">
            <tbody>
            <tr>
                <td colspan="4" align="left"  style="border-bottom: 1px solid #d4dede; padding: 10px 0px; color: #1874ac; font-weight: bold;">发票信息</td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>发票类型</td>
                <td>
                    <select class="form_select" name="invoice[category]" id="invoice_category" tabindex="-1">
                        <option value="1">增值税发票(13%)</option>
                        <option value="2">增值税发票(普通)</option>
                    </select>
                </td>
                <td class="t1"><span class="red mr10">*</span>公司名称</td>
                <td><input type="text" class="form_input wd300" id="invoice_company_name" name="invoice[company_name]" placeholder="请输入您的公司名称"></td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>税务登记号</td>
                <td>
                    <input type="text" class="form_input wd300" id="invoice_tax_no" name="invoice[tax_no]" placeholder="请输入您的税务登记号">
                </td>
                <td class="t1"><span class="red mr10">*</span>电话</td>
                <td>
                    <input type="text"  class="form_input wd300" id="invoice_mobile" name="invoice[mobile]" placeholder="请输入您的电话">
                </td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>传真</td>
                <td>
                    <input type="text" class="form_input wd300" id="invoice_fax" name="invoice[fax]" placeholder="请输入您的传真">
                </td>
                <td class="t1"><span class="red mr10">*</span>开户银行</td>
                <td>
                    <input type="text" class="form_input wd300" id="invoice_bank" name="invoice[bank]" placeholder="请输入您的开户银行">
                </td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>银行账户</td>
                <td colspan="3">
                    <input type="text" class="form_input wd300" id="invoice_account_no" name="invoice[account_no]" placeholder="请输入您的银行账户">
                </td>
            </tr>
            <tr>
                <td class="t1"><span class="red mr10">*</span>公司地址</td>
                <td colspan="3">
                    <input type="text" class="form_input wd500" id="invoice_company_address" name="invoice[company_address]" placeholder="请输入您的公司地址">
                </td>
            </tr>
            <tr>
               <td colspan="4" align="left" style="border-bottom: 1px solid #d4dede; padding: 10px 0px; color: #1874ac; font-weight: bold;">接收信息</td>
            </tr>
                <tr>
                    <td class="t1"><span class="red mr10">*</span>收票人</td>
                    <td>
                        <input type="text" class="form_input wd300" id="invoice_delivery_contact" name="invoice[delivery_contact]" placeholder="请输入您的收票人">
                    </td>
                    <td class="t1"><span class="red mr10">*</span>联系电话</td>
                    <td>
                        <input type="text"  class="form_input wd300" id="invoice_delivery_mobile" name="invoice[delivery_mobile]" placeholder="请输入您的联系电话">
                    </td>
                </tr>
                <tr>
                    <td class="t1"><span class="red mr10">*</span>收票地址</td>
                    <td colspan="3">
                        <input type="text" class="form_input wd500" id="invoice_delivery_address" name="invoice[delivery_address]" placeholder="请输入您的收票地址">
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center"><button class="submit_btn wdp50" type="button" onclick="javascript:void(0);" id="btn_save_invoice">确认</button></td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    /**
     * 新增发票
     */
    $("#btn_add_invoice").click(function () {
        layer.open({
            type: 1,
            title:'新增发票',
            skin: 'layui-layer-lan', //加上边框
            area: ['60%', '70%'], //宽高
            btnAlign: 'l',
            closeBtn:2,
            scrollbar:true,
            content: $("#add_invoice_block"),
            end:function () {

            }
        });
    });



    /*
     删除地址
     **/
    function delete_address(id) {
        layer.confirm('您是否确认删除地址！', {
            btn: ['确定','取消'], //按钮
            skin: 'layui-layer-warn',
            anim: 4
        }, function(){

            $.ajax({
                url:"http://www.buysellchem.com/member/account/delete_address",
                data:{ "_token": "uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB", "id": id},
                type: "post",
                dataType: "json",
                success: function (data) {

                    layer.alert(data.msg, {
                        skin: 'layui-layer-lan' //样式类名
                        ,closeBtn: 0
                        ,anim: 4
                    }, function(){
                        window.location.href = "http://www.buysellchem.com/member/account/transaction";
                    });
                },
                error: function () {
                    layer.msg('系统异常，请联系客服人员！', {icon: 2});
                }
            });

        });
    }

    /**
     * 设置默认地址
     * @param id
     */
    function set_address_default(id) {
        layer.confirm('确认设置为默认吗！', {
            btn: ['确定','取消'], //按钮
            skin: 'layui-layer-lan',
            anim: 4
        }, function(){

            $.ajax({
                url:"http://www.buysellchem.com/member/account/default_address",
                data:{ "_token": "uPm8czm4d7Fg6QzZBbMaKawSKydIPC3UOk0MmSZB", "id": id},
                type: "post",
                dataType: "json",
                success: function (data) {

                    layer.alert(data.msg, {
                        skin: 'layui-layer-lan' //样式类名
                        ,closeBtn: 0
                        ,anim: 4
                    }, function(){
                        window.location.href = "http://www.buysellchem.com/member/account/transaction";
                    });
                },
                error: function () {
                    layer.msg('系统异常，请联系客服人员！', {icon: 2});
                }
            });

        });
    }
</script>